#
# MAINTAINER        Carson,C.J.Zeong <zcy@nicescale.com>
# DOCKER-VERSION    1.8.1
#
# Dockerizing Mariadb: Dockerfile for building Mariadb images
#
FROM csphere/centos:7
MAINTAINER Carson,C.J.Zeong <zcy@nicescale.com>

ENV DATA_DIR /var/lib/mysql

# Install Mariadb
RUN yum install -y mariadb mariadb-server && \
    yum clean all

COPY mysqld_charset.cnf /etc/my.cnf.d/
COPY my.cnf /etc/my.cnf
COPY scripts /scripts

RUN chmod +x /scripts/start

#EXPOSE 3306

VOLUME ["/var/lib/mysql"]

CMD ["/scripts/start"]
